package com.lehecai.ucenter.service.permission;

import java.util.List;

import com.lehecai.ucenter.entity.permission.Permission;
import com.lehecai.ucenter.entity.permission.Role;

public interface RoleService {
	public Role get(Long id);
	public List<Role> getAll();
	public Role update(Role role);
	public void delete(Role role);
	
	public List<Permission> findPermissionsByRole(Role role);
	public void manage(Role role, List<Permission> permissions);
}